package com.atguigu.guliguli.product.service;

import lombok.extern.slf4j.Slf4j;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Arrays;

/**
 * @author: 叶子
 * @date: 2021/12/19 09:29
 **/
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class GuLiGuLiProductApplication {
    @Autowired
    BrandService brandService;
    @Autowired
    CategoryService categoryService;
    public void testFindPath(){
        Long [] catalogPath = categoryService.findCatalogPath(225L);
        log.info("完整路径：{}", Arrays.asList(catalogPath));
    }
}